<?php
	
	require 'configDB.php';
	
	$username = $_POST['user_name'];
	$password = $_POST['password'];
	$role = $_POST['role'];
	$id = $_POST['id'];

	$query = mysql_query("UPDATE pengguna SET user_name ='$username', password = '$password', role ='$role', WHERE id='$id");
	
	header("Location: ../laporan_pengguna.php");
?>